#pragma once

#include <rpc_root.h>
#include <Service/proxy/example.service.Service.proxy.h>
#include <ServiceDynamic/proxy/example.service.ServiceDynamic.proxy.h>
#include <ctime>

class MockCaller {
    std::shared_ptr<ServiceProxy> prx_;
    std::shared_ptr<ServiceDynamicProxy> prxDy_;
    rpc::TransportPtr trans_;
    bool finished_ {true};
    int count_ {0};
    int last_count_ {0};
    std::time_t tick_ {0};
public:
    MockCaller();
    ~MockCaller();
    void doTest(rpc::TransportPtr trans);
};
